var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;

var _def_UI_AttackInfo = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.baojiNode = null;
    t.zhongduNode = null;
    t.putongNode = null;
    t.miaoshaNode = null;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.onEnable = function () {};
  _creator.prototype.setValue = function (e, t) {
    var o = (e + "").split(".");
    var n = null;
    switch (t) {
      case 2:
        this.baojiNode.active = true;
        this.zhongduNode.active = false;
        this.putongNode.active = false;
        this.miaoshaNode.active = false;
        n = this.baojiNode.getChildByName("value").getComponent(cc.Label);
        break;
      case 3:
        this.baojiNode.active = false;
        this.zhongduNode.active = true;
        this.putongNode.active = false;
        this.miaoshaNode.active = false;
        n = this.zhongduNode.getChildByName("value").getComponent(cc.Label);
        break;
      case 4:
        this.baojiNode.active = false;
        this.zhongduNode.active = false;
        this.putongNode.active = false;
        this.miaoshaNode.active = true;
        break;
      default:
        this.miaoshaNode.active = false;
        this.baojiNode.active = false;
        this.zhongduNode.active = false;
        this.putongNode.active = true;
        n = this.putongNode.getChildByName("value").getComponent(cc.Label);
    }
    if (n) {
      n.string = "" + o[0];
      this.scheduleOnce(function () {
        n.node.parent.width = n.node.width;
      });
    }
  };
  __decorate([_property(cc.Node)], _creator.prototype, "baojiNode", undefined);
  __decorate([_property(cc.Node)], _creator.prototype, "zhongduNode", undefined);
  __decorate([_property(cc.Node)], _creator.prototype, "putongNode", undefined);
  __decorate([_property(cc.Node)], _creator.prototype, "miaoshaNode", undefined);
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_UI_AttackInfo;